import useAxiosApi from '@/utils/useAxiosApi';


/**
 * 获取
 * @returns UseAxiosReturn
 */
export function getNoteList(data) {
  return useAxiosApi(`week/list`, {
    method: 'POST',
    data: data
  });
}

export function writeNote(data) {
  return useAxiosApi(`week/write`, {
    method: 'POST',
    data: data
  });
}


export function addNote(data: any) {
  return useAxiosApi(`week/add`, {
    method: 'POST',
    data: data
  });
}

export function addFavorites(data: any) {
  return useAxiosApi(`week/favorites`, {
    method: 'POST',
    data: data
  });
}


export function deleteNote(data: any) {
  return useAxiosApi(`week/deleteNote`, {
    method: 'POST',
    data: data
  });
}


